#! /bin/sh

echo
echo "/************** 开始安装主题 ****************/"
cd themes
# # 下载Next主题
# if [ ! -d "next" ]; then
#     git clone https://github.com/theme-next/hexo-theme-next next
# else
#     echo "Theme-Next was installed!"
# fi
# # Next主题的一些插件
# cd next
# if [ ! -d "source/lib/pjax" ]; then
#     git clone https://github.com/theme-next/theme-next-pjax source/lib/pjax
# else
#     echo "Theme-Next-pjax was installed!"
# fi
# if [ ! -d "source/lib/pace" ]; then
#     git clone https://github.com/theme-next/theme-next-pace source/lib/pace
# else
#     echo "Theme-Next-pace was installed!"
# fi
# if [ ! -d "source/lib/canvas-nest" ]; then
#     git clone https://github.com/theme-next/theme-next-canvas-nest source/lib/canvas-nest
# else
#     echo "Theme-Next-canvas-nest was installed!"
# fi
# cd ..

# 下载Fluid主题
if [ ! -d "fluid" ]; then
    
    wget -O fluid.zip https://github.com/fluid-dev/hexo-theme-fluid/archive/v1.8.1.zip
    unzip fluid.zip 
    mv hexo-* fluid
    rm fluid.zip
else
    echo "Theme-Fluid was installed!"
fi

echo "/************** 主题安装完毕 ****************/"
echo
